package homework0308;

import java.io.*;

public class OOSDemo {
    public static void main(String[] args) throws IOException {
        String name="蔡坤";
        int age=30;
        String address="北京";
        String[] otherInfo={"唱","跳","rap"};
        Student ck=new Student(name,age,address,otherInfo);
        System.out.println(ck);
        FileOutputStream fos=new FileOutputStream("student.obj");
        ObjectOutputStream oos=new ObjectOutputStream(fos);
        oos.writeObject(ck);
        System.out.println("写出完毕");
        oos.close();




    }
}
